package org.qqcui.designpattern.patterns.strategy;

/**
 * 野鸭实现类，会飞，嘎嘎叫
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/5/7 15:19
 **/
public class WildDuck extends Duck {

    public WildDuck() {
        this.flyBehavior = new GoodFlyBehavior();
        this.quackBehavior = new GagaQuackBehavior();
    }

    @Override
    public void display() {
        System.out.println("==============野鸭===================");
        fly();
        quack();
    }
}
